<template>
  <div style="text-align:center;background-color: #FFFFFF; height: 100%;">
    <el-main style="background-color: #FFFFFF;">
      <el-col :xs="15" :sm="15" :md="15" :lg="15">
        <table border="0" style="width: 160%; " align="center">
          <tr>
            <td colspan="3" >
              <el-carousel :interval="3000" type="" arrow="never" height="150px">
                <el-carousel-item v-for="item in imagebox" :key="item.id">
                  <img :src="item.idView" class="image" style="width:100%;height:inherit;">
                </el-carousel-item>
              </el-carousel>
            </td>
          </tr>
          <tr align="center" >
            <td >
              <el-col :span="23" style="margin-top: 20px;">
                <div class="grid-content" style="width: 100%;height: 100%;" @click="jump('/guidance/EvidenceGuidanceList')"><img
                    src="./img/zhiyinnew.png">
                  <center>
                    <el-button type="text" @click="jump('/guidance/EvidenceGuidanceList')">
                      <h3 >
                      证据指引
                      </h3>
                      </el-button>
                  </center>
                </div>
              </el-col>
            </td>
            <td>
              <el-col :span="23" style="margin-top: 20px;">
                <div class="grid-content " @click="jump('/test/introductionexperts/IntroductionExpertsList')"><img src="./img/zixunnew.png">
                  <center>
                    <el-button type="text" @click="jump('/test/introductionexperts/IntroductionExpertsList')">
                      <h3>
                      专家咨询
                      </h3>
                      </el-button>
                  </center>
                </div>
              </el-col>
            </td>
            <td>
              <el-col :span="23" style="margin-top: 20px;">
                <div class="grid-content " @click="jump('/dqsy/lilun/YjyDataLilunList')"><img src="./img/shenghuo.png">
                  <center>
                    <el-button type="text" @click="jump('/dqsy/lilun/YjyDataLilunList')">

                      <h3>
                      理论研究

                      </h3>

                      </el-button>
                  </center>
                </div>
              </el-col>
            </td>
            <!-- <td>
              <el-col :span="24">
                <div class="grid-content " @click="jump('/test/smalltest/measurement/index')"><img src="./img/计算器.png">
                  <center>
                    <el-button type="text" @click="jump('/test/smalltest/measurement/index')">量刑计算</el-button>
                  </center>
                </div>
              </el-col>
            </td> -->
          </tr>
          <tr align="center">
            <td>
              <el-col :span="23" style="margin-top: 20px;">
                <div class="grid-content " @click="jump('/dqsy/zhengjuxiaoyan/FfDataMainList')"><img src="./img/jiaoyannew.png">
                  <center>
                    <el-button type="text" @click="jump('/dqsy/zhengjuxiaoyan/FfDataMainList')">

                      <h3>
                      证据校验

                      </h3>

                      </el-button>
                  </center>
                </div>
              </el-col>
            </td>
            <td>
              <el-col :span="23" style="margin-top: 20px;">
                <div class="grid-content" style="width: 100%;height: 100%;" @click="jump('/dqsy/anlisuoyin/FfDataJingDianList')"><img
                    src="./img/anlinew.png">
                  <center>
                    <el-button type="text" @click="jump('/dqsy/anlisuoyin/FfDataJingDianList')">

                      <h3>
                      经典案例
                      </h3>

                      </el-button>
                  </center>
                </div>
              </el-col>
              <!-- <el-col :span="23">
                <div class="grid-content " @click="jump('/notify/MyNotifyList')"><img src="./img/通告.png">
                  <center>
                    <el-button type="text" @click="jump('/notify/MyNotifyList')">我的通告</el-button>
                  </center>
                </div>
              </el-col> -->
            </td>
            <td>
              <el-col :span="23" style="margin-top: 20px;">
                <div class="grid-content " @click="jump('/dqsy/xingfa/YjyDataXingList')"><img src="./img/chaxun.png">
                  <center>
                    <el-button type="text" @click="jump('/dqsy/xingfa/YjyDataXingList')">
                      <h3>
                      法律查询

                      </h3>
                      </el-button>
                  </center>
                </div>
              </el-col>
            </td>
          </tr>
          <tr align="center">
            <!-- <td>
             <el-col :span="20">
                <div class="grid-content" style="width: 100%;height: 100%;" @click="jump('/dqsy/anlisuoyin/FfDataJingDianList')"><img
                    src="./img/服务案例.png">
                  <center>
                    <el-button type="text" @click="jump('/dqsy/anlisuoyin/FfDataJingDianList')">经典案例</el-button>
                  </center>
                </div>
              </el-col>
            </td> -->
          </tr>
          <!-- <tr align="center">
            <td>
              <el-col :span="20">
                <div v-if="hasPermission('test:activiti:testActivitiAudit:hide')" class="grid-content" ><a href="/#/sys/dashboard/analysis/mange"><img style="width: 55px;" src="./img/管理.png"></a>
                  <center>
                    <el-button  type="text" @click="jump('/sys/dashboard/analysis/mange')">管理入口</el-button>
                  </center>
                </div>
              </el-col>
            </td>
          </tr> -->
        </table>
      </el-col>
      <!-- 删除:before-close="handleClose" -->
      <el-dialog title="提示" :visible.sync="dialogVisible" width="100%">
        <el-button type="success" size="mini" @click="dialogVisible = false ,jump('/test/publicconsultation/PublicConsultationList')">公开咨询</el-button>
        <el-button style="margin-left:20px ;" type="primary" size="mini" @click="dialogVisible = false , sendLetter()">不公开咨询</el-button>
        <span slot="footer" class="dialog-footer">
          <el-button @click="dialogVisible = false">取 消</el-button>
          <!-- <el-button type="primary" @click="dialogVisible = false">确 定</el-button> -->
        </span>
      </el-dialog>


    </el-main>

    <div class="footer_guide" style="height: 75px;">

      <a href="javascript:;" class="guide_item" :class="{on : '/order'===$route.path}" @click="goTo('/calendar/MyCalendar')">
        <span class="item_icon">
          <i class="el-icon-s-promotion" style="font-size: 25px;"></i>
        </span>
        <span>日程</span>
      </a>
      <a href="javascript:;" class="guide_item" :class="{on : '/order'===$route.path}" @click="goTo('/application/index')">
        <span class="item_icon">
          <i class="el-icon-s-shop" style="font-size: 25px;"></i>
        </span>
        <span>应用库</span>
      </a>

      <a href="javascript:;" class="guide_itemc" :class="{on : '/msite'===$route.path}" @click="goTo('/home')">
        <span class="item_icon" style="margin-top: 7px;">
          <i class="el-icon-s-home" style="font-size: 40px; font-weight: bold; color: #1890FF; "> </i>
        </span>
        <span style="color: #1890FF;">工作台</span>
      </a>

      <a href="javascript:;" class="guide_item" :class="{on : '/order'===$route.path}" @click="goTo('/mailbox/index')">
        <span class="item_icon">
          <i class="el-icon-s-comment" style="font-size: 25px;"></i>
        </span>
        <span>消息</span>
      </a>
      <a href="javascript:;" class="guide_item" :class="{on : '/profile'===$route.path}" @click="goTo('/sys/user/UserInfo')">
        <span class="item_icon">
          <i class="el-icon-user-solid" style="font-size: 25px;"></i>
        </span>
        <span>我的</span>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        dialogVisible: false,
        imagebox: [{
            id: 0,
            idView: require('./img/1147e3c4790040c7b63bb0a255a14d45.jpeg')
          },
          {
            id: 1,
            idView: require('./img/20201219214026.jpg')
          },
          {
            id: 2,
            idView: require('./img/120201219214037.jpg')
          }
        ],
        screenWidth: 0
      }
    },
    methods: {
      jump (p) {
        this.$router.push(p)
      },
      goTo (path) {
        this.$router.replace(path)
      },
      setSize: function () {
        // 通过浏览器宽度(图片宽度)计算高度
        this.bannerHeight = 400 / 1920 * this.screenWidth
      },
      sendLetter () {
        this.$refs.sendEmail.init('add', '')
      }
    },
    mounted () {
      // 首次加载时,需要调用一次
      this.screenWidth = window.innerWidth
      this.setSize()
      // 窗口大小发生改变时,调用一次
      window.onresize = () => {
        this.screenWidth = window.innerWidth
        this.setSize()
      }
    }
  }
</script>

<style>
  .footer_guide {
    border-top: 1px soild #e4e4e4;
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 1px;
    font-size: 600px;
    background-color: #fff;
    width: 100%;
    height: 50px;
    display: flex;

  }

  .guide_item {
    display: flex;
    flex: 1;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    color: #999999;
  }

  .guide_itemc {
    display: flex;
    flex: 1;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0px;
    color: #999999;
  }

  .on {
    color: #02a774
  }

  span {
    font-size: 12px;
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .iconfont {
    font-size: 22px;
  }

  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>
